package com.teaphy.demo;

import com.teaphy.annotation.C;
import com.teaphy.data.Person;

import java.lang.annotation.Annotation;

/**
 * @author teahy
 * @desc
 * @since 14:47
 */
public class AnnotationDemo {
    public static void main(String[] args) {
        Class clzPerson = Person.class;

        Annotation annotation = clzPerson.getAnnotation(C.class);
        if (null != annotation) {
            C c = (C) annotation;
            System.out.println("c: " + c);
        }
    }
}
